import Vue from 'vue'
import VueRouter from 'vue-router'

import Login from '../views/Login/Login'
// import editDraw from '../views/editDraw/editDraw'
import Palatte from '../views/Palatte/Palatte'
import palatteList from '../views/palatteList/palatteList'

Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/palatteList',
  //   name: 'palatteList',
  //   component: palatteList
  // },
  {
    path: '/',
    component: Login
},
  {
    path: '/palatteList',
    name: 'palatteList',
    component: palatteList
  },

  // {
  //   path:'/editDraw',
  //   name:'editDraw',
  //   component: editDraw ,
  //   children:[
   
  //   ]

  // },
  {
    path:'/palatte/:id/:state',
    name:'palatte',
    component: Palatte,

  },
  { // 用户白板创建的分享链接打开的页面
    path:'/share',
    name:'share',
    component: ()=> import('@/views/Share/Share')
  }


]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
